package com.siyue.neo4j_demo.dao;

import com.siyue.neo4j_demo.entity.Person;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.stereotype.Repository;

@Repository
public  interface PersonRepository  extends Neo4jRepository<Person,Long> {


    @Query("MATCH (n:Person {name:'冯宝宝'}) RETURN n")
    Person getTest();


}
